package com.xiao.controller;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import com.xiao.client.TestFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author lao xiao
 * @date 2025-06-15 10:53
 */
@RestController
@RequestMapping("/consumer")
public class TestController {

    @Autowired
    private TestFeignClient testFeignClient;

    @GetMapping("/getPort")
    public String getPort() {
        return testFeignClient.getPort();
    }

    @GetMapping("/getPortTimeOut")
    public String getPortTimeOut() {
        return testFeignClient.getPortTimeOut();
    }

}
